package org.apache.dolphinscheduler.api.service;

import org.apache.dolphinscheduler.api.utils.Result;
import org.apache.dolphinscheduler.dao.entity.Bill;
import org.apache.dolphinscheduler.dao.entity.User;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 收支明细表 服务类
 * </p>
 *
 * @author denggh
 * @since 2023-08-14
 */
public interface BillService {

    Result selectPageBillList(User loginUser, Bill bill, Integer pageSize, Integer pageNo, String startDate,
                              String endDate);

    Result selectBillTotal(User loginUser);

    Result chartBillInYear(User loginUser, String startDate, String endDate, User user, String billType);

    void exportExcel(User loginUser, Bill bill, String startDate, String endDate, HttpServletResponse response);
    
    void saveBill(Bill bill);
}
